package ooday02.person;

public class Teacher extends Person {
    double salary;
    Teacher(String name,int age,String address,double salary){
        super(name,age,address);
        this.salary=salary;
    }
    void teac(){};

//@Override
//     void sayHi() {
//        System.out.println("老师类, sayHi");
//    }
//    void sayHi(int age){
//
//    }
    void sayHi(){
        System.out.println("事实上");
    }
}
